/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.myapp.struts;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author SonLT
 */
public class VacancyInsertForm extends org.apache.struts.action.ActionForm {

    private String txtvacancyID;
    private String cbxDepartment;
    private String txtvacancyTitle;
    private String txtNumOfJob;
    private String txtSalary;
    private String txtExperience;
    private String txtStartdate;
    private String txtClosedate;
    private String txtStatus;
    private String txtPlace;

    public String getTxtPlace() {
        return txtPlace;
    }

    public void setTxtPlace(String txtPlace) {
        this.txtPlace = txtPlace;
    }

    public String getCbxDepartment() {
        return cbxDepartment;
    }

    public void setCbxDepartment(String cbxDepartment) {
        this.cbxDepartment = cbxDepartment;
    }

    public String getTxtClosedate() {
        return txtClosedate;
    }

    public void setTxtClosedate(String txtClosedate) {
        this.txtClosedate = txtClosedate;
    }

    public String getTxtExperience() {
        return txtExperience;
    }

    public void setTxtExperience(String txtExperience) {
        this.txtExperience = txtExperience;
    }

    public String getTxtNumOfJob() {
        return txtNumOfJob;
    }

    public void setTxtNumOfJob(String txtNumOfJob) {
        this.txtNumOfJob = txtNumOfJob;
    }

    public String getTxtSalary() {
        return txtSalary;
    }

    public void setTxtSalary(String txtSalary) {
        this.txtSalary = txtSalary;
    }

    public String getTxtStartdate() {
        return txtStartdate;
    }

    public void setTxtStartdate(String txtStartdate) {
        this.txtStartdate = txtStartdate;
    }

    public String getTxtStatus() {
        return txtStatus;
    }

    public void setTxtStatus(String txtStatus) {
        this.txtStatus = txtStatus;
    }

    public String getTxtvacancyID() {
        return txtvacancyID;
    }

    public void setTxtvacancyID(String txtvacancyID) {
        this.txtvacancyID = txtvacancyID;
    }

    public String getTxtvacancyTitle() {
        return txtvacancyTitle;
    }

    public void setTxtvacancyTitle(String txtvacancyTitle) {
        this.txtvacancyTitle = txtvacancyTitle;
    }

    /**
     *
     */
    public VacancyInsertForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
//        if (getName() == null || getName().length() < 1) {
//            errors.add("name", new ActionMessage("error.name.required"));
//            // TODO: add 'error.name.required' key to your resources
//        }
        return errors;
    }
}
